package gui;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import domein.DomeinController;
import java.awt.Canvas;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JSeparator;
import javax.swing.SwingConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MainFrame extends javax.swing.JFrame 
{

	private DomeinController domeinController;
	private NavigatiePanel navigatiePanel;
	private JLabel lblTitel;
	private OverzichtPanel overzichtPanel;
	private ActiePanel actiePanel;
	private JSeparator sptLijn;

	public MainFrame(DomeinController domeinController) 
	{
		this.domeinController = domeinController;
		initGUI();
	}
	
	private void initGUI() 
	{
		try 
		{
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setBackground(new java.awt.Color(90, 116, 142));
			getContentPane().setLayout(null);
			this.setSize(new java.awt.Dimension(960, 600));
			this.setMinimumSize(new java.awt.Dimension(960, 600));
			this.setResizable(false);
			this.setLocation(new java.awt.Point(300, 200));
			{
				sptLijn = new JSeparator();
				getContentPane().add(sptLijn);
				sptLijn.setBounds(12, 68, 936, 10);
				sptLijn.setForeground(new java.awt.Color(78, 101, 125));
			}
			{
				navigatiePanel = new NavigatiePanel(domeinController);
				getContentPane().add(navigatiePanel);
				navigatiePanel.setBounds(12, 80, 212, 490);
			}
			{
				// eigen observable doorgeven aan de observer (cedric)
				overzichtPanel = new OverzichtPanel(domeinController,navigatiePanel);
				getContentPane().add(overzichtPanel);
				overzichtPanel.setBounds(230, 80, 499, 490);
			}
			{
				actiePanel = new ActiePanel(domeinController,navigatiePanel);
				getContentPane().add(actiePanel);
				actiePanel.setBounds(736, 81, 212, 490);
			}
			{
				lblTitel = new JLabel();
				getContentPane().add(lblTitel);
				lblTitel.setText("JOKE");
				lblTitel.setBounds(32, 0, 865, 69);
				lblTitel.setHorizontalAlignment(SwingConstants.CENTER);
				lblTitel.setFont(new java.awt.Font("Arial Black",0,36));
				lblTitel.setForeground(new java.awt.Color(66, 165, 215));
			}
			pack();
			this.setSize(960, 600);
		} 
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	}

}
